package com.wit.service.impl;

import java.io.Serializable;
import java.util.List;

import com.wit.dao.InsurancedefDao;
import com.wit.po.Insurancedef;
import com.wit.service.InsurancedefService;

public class InsurancedefServiceImpl implements InsurancedefService {
	
	private InsurancedefDao insurancedefDao;

	public InsurancedefDao getInsurancedefDao() {
		return insurancedefDao;
	}

	public void setInsurancedefDao(InsurancedefDao insurancedefDao) {
		this.insurancedefDao = insurancedefDao;
	}

	
	public Serializable addInsurancedef(Insurancedef insurancedef) {
		// TODO Auto-generated method stub
		return insurancedefDao.addInsurancedef(insurancedef);
	}

	
	public boolean deleteInsurancedef(Insurancedef insurancedef) {
		// TODO Auto-generated method stub
		return insurancedefDao.deleteInsurancedef(insurancedef);
	}

	
	public List<Insurancedef> findAllInsurancedef() {
		// TODO Auto-generated method stub
		return insurancedefDao.findAllInsurancedef();
	}

	
	public Insurancedef findInsurancedefByIdenfier(Integer insuranceId) {
		// TODO Auto-generated method stub
		return insurancedefDao.findInsurancedefByIdenfier(insuranceId);
	}

	
	public boolean modifyInsurancedef(Insurancedef insurancedef) {
		// TODO Auto-generated method stub
		return insurancedefDao.modifyInsurancedef(insurancedef);
	}

	
	public Insurancedef findInsurancedefBySubcompInsurance(String subcomp,
			String insuranceNumber) {
		return insurancedefDao.findInsurancedefBySubcompInsurance(subcomp, insuranceNumber);
	}

}
